﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucThemTinTuc.ascx.cs"
    Inherits="STT.Admin.UserControls.ucThemTinTuc"%>

<div id="content-header">
    <div id="breadcrumb">
        <a href="../Default.aspx" class="tip-bottom" data-original-title="Về bảng điều khiển">
            <i class="icon-home"></i>Trang chủ
        </a>
        <a href="../Admin/Default.aspx?" class="current">Quản lý tin tức</a>
        <a href="../Admin/Default.aspx?" class="current">Thêm tin tức </a>
    </div>
</div>
<div class="widget-box collapsible">
    <div class="widget-title">
        <a href="#collapseOne" data-toggle="collapse" class="">
            <span class="icon"><i class="icon-th"></i></span>
            <h5>Nhập thông tin</h5>
        </a>
    </div>
    <div class="in collapse" id="collapseOne" style="height: auto;">
        <div class="widget-content nopadding">
            <div class="dataTables_wrapper" role="grid">
                <%-- Cac dieu kien tim kiem --%>
                <div class="container-fluid">
                    <div class="row-fluid">
                        <div class="control-group">
                            <label class="control-label">Tiêu đề: </label>
                            <div class="controls">
                                <asp:TextBox ID="txtTieuDeTT" runat="server" class="span20"></asp:TextBox>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">Tóm tắt: </label>
                            <div class="controls">
                                <asp:TextBox ID="txtTomTat" runat="server" class="span20" TextMode="MultiLine" Rows="3"></asp:TextBox>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">Chi tiết: </label>
                            <div class="controls">
                                <asp:TextBox ID="txtChiTiet" runat="server" class="mceAdvanced"></asp:TextBox>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">Loại tin tức: </label>
                            <div class="controls">
                                <asp:DropDownList ID="ddLoaiTinTuc" runat="server"></asp:DropDownList>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">Đính kèm: </label>
                            <div class="controls">
                                <asp:FileUpload ID="FileUpload1" runat="server" />
                            </div>
                        </div>
                    </div>
                </div>
                <div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-bl">
                    <asp:Button ID="btThemMoi" runat="server" Text="Thêm mới" CssClass="btn btn-info" />
                    <asp:Button ID="btLuu" runat="server" Text="Sửa" CssClass="btn btn-info" />
                    <asp:Button ID="btXemTruoc" runat="server" Text="Xem trước" CssClass="btn btn-info" />
                </div>
            </div>
        </div>
    </div>

</div>

<script type="text/javascript">
    $(document).ready(function () {
        tinymce.init({
            selector: ".mceAdvanced",
            theme: "modern",
            plugins: [
             "advlist autolink lists link image charmap print preview hr anchor pagebreak",
             "searchreplace wordcount visualblocks visualchars code fullscreen",
             "insertdatetime media nonbreaking save table contextmenu directionality",
             "emoticons template paste textcolor"
            ],
            toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
            toolbar2: "print preview media | forecolor backcolor emoticons",
            image_advtab: true,
        });
    });
</script>
